// UIJinDuDlg.cpp : implementation file
//

#include "stdafx.h"
#include "JianAiSSQ.h"
#include "UIJinDuDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CUIJinDuDlg dialog


CUIJinDuDlg::CUIJinDuDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CUIJinDuDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CUIJinDuDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CUIJinDuDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CUIJinDuDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CUIJinDuDlg, CDialog)
	//{{AFX_MSG_MAP(CUIJinDuDlg)
	ON_WM_MOUSEMOVE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CUIJinDuDlg message handlers

void CUIJinDuDlg::OnMouseMove(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	PostMessage(WM_NCLBUTTONDOWN,HTCAPTION,1);   
	
	CDialog::OnMouseMove(nFlags, point);
}

BOOL CUIJinDuDlg::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class
	if (pMsg->message == WM_KEYDOWN &&
		(pMsg->wParam == VK_ESCAPE || pMsg->wParam == VK_RETURN) )
	{
		return TRUE;
	}
	
	return CDialog::PreTranslateMessage(pMsg);
}
